/*
 * parts.h
 *
 *  Created on: Aug 12, 2013
 *      Author: Ken Arok
 */

#include "config_board.h"

#if BOARD_1_0_USED

#ifndef PARTS_H_
#define PARTS_H_

/**
 * \name Convenience macros for part checking
 * @{
 */

/* ! Check GCC and IAR part definition for 32-bit AVR */
#define AVR32_PART_IS_DEFINED(part) (defined(__AT32 ## part ## __) || defined(__AVR32_ ## part ## __))

/** @} */


/**
 * \name AVR UC3C0 series
 * @{
 */
#define UC3C0	(AVR32_PART_IS_DEFINED(UC3C064C) || AVR32_PART_IS_DEFINED(UC3C0128C) || AVR32_PART_IS_DEFINED(UC3C0256C) || AVR32_PART_IS_DEFINED(UC3C0512C))
/** @} */


/**
 * \name AVR UC3 families
 * @{
 */
/** AVR UC3 C family */
#define UC3C (UC3C0)
/** @} */

/** AVR UC3 product line */
#define UC3  (UC3C)

#endif /* PARTS_H_ */

#endif /* BOARD_1_0_USED */
